package com.naizhuai.ui.entity;

import android.net.Uri;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

/**
 * 图片的基本bean
 * Created by code_han on 2018/3/30.
 */

public class ImageBean implements Serializable {
    @SerializedName("imgUrl")
    private String url;
    @SerializedName("imgKey")
    private String path;
    transient private Uri imageUriInput;
    transient private Uri imageUriOutput;

    public ImageBean() {
    }

    public Uri getImageUriInput() {
        return imageUriInput;
    }

    public void setImageUriInput(Uri imageUriInput) {
        this.imageUriInput = imageUriInput;
    }

    public Uri getImageUriOutput() {
        return imageUriOutput;
    }

    public void setImageUriOutput(Uri imageUriOutput) {
        this.imageUriOutput = imageUriOutput;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    @Override
    public String toString() {
        String imageUriInputStr=imageUriInput==null?"为空":imageUriInput.getPath();
        String imageUriOutputStr=imageUriOutput==null?"为空":imageUriOutput.getPath();
        return "url="+url+";path="+path+";\nimageUriInputStr="+imageUriInputStr+";imageUriOutputStr="+imageUriOutputStr;
    }
}
